package liecai_class.day05;

public class Demo02 {
    public static void main(String[] args) {
        /*
                A
               /\
              B  G
              /\  \
             C D   H
               /\
               E F
            ABCxxDExxFxxGxHxx
         */
        String [] arr = {"A","B","C",null,null,"D","E",null,null,"F",null,null,"G",null,"H",null,null};
        BTree<String> bTree = new BTree<>(arr);

        bTree.preOrder();
        bTree.inOrder();
        bTree.postOrder();
        bTree.levelOrder();
    }
}